package com.world.tg.service;

import com.world.tg.param.AddressParam;
import com.world.tg.param.RegisterOrLoginParam;
import com.world.tg.pojo.User;
import com.world.tg.result.BaseResult;
import com.world.tg.result.JsonResult;
import springfox.documentation.spring.web.json.Json;

import javax.servlet.http.HttpServletRequest;

public interface UserService {
    BaseResult register(String username,String password);
    BaseResult login(String username, String password);
    BaseResult editUser(User param);
    JsonResult findUserMsg();
    BaseResult addAddress(AddressParam param);
    JsonResult findAddress();
    JsonResult findCollect();
    JsonResult editPhoto(String filename);
    JsonResult getPhoto();
    BaseResult logout();
    JsonResult isLogin();
}
